package online.yysh.charging.livedata;

import androidx.lifecycle.MutableLiveData;

import online.yysh.charging.bean.Login;

/**
 * 用户管理
 */
public class UserManager {
    private static UserManager instance;

    public static UserManager getInstance() {
        if (instance == null) {
            synchronized (UserManager.class) {
                if (instance == null) {
                    instance = new UserManager();
                }
            }
        }
        return instance;
    }

    private MutableLiveData<Login> liveData;

    private UserManager() {
        liveData = new MutableLiveData<>();
    }

    public MutableLiveData<Login> getLiveData(){
        return liveData;
    }
}
